package com.ljz.controller;

import com.ljz.dao.DBTestRepository;
import com.ljz.entity.DBTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by jiazhang on 2017/4/12.
 */

@RestController
public class DBTestController {

    @Autowired
    DBTestRepository dbTestRepository;
    @GetMapping(value = "/DBTest")
    private List<DBTest>dbTestList() {
        return dbTestRepository.findAll();
    }

}
